import request from '@/utils/request'

export function queryYearPage(listQuery) {
  return request({
    url: '/money/year/page',
    method: 'get',
    params: {
      current: listQuery.page,
      size: listQuery.size,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      areaCode: listQuery.areaCode,
      approvalKey: listQuery.approvalKey,
      year: listQuery.year
    }
  })
}

export function queryDetailPage(listQuery) {
  return request({
    url: '/money/detail/page',
    method: 'get',
    params: {
      current: listQuery.page,
      size: listQuery.size,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime
    }
  })
}

export function create(temp) {
  return request({
    url: 'money/add',
    method: 'post',
    data: temp
  })
}

